package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.domain.Strategy;
import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface StrategyRepository extends MongoRepository<Strategy,String> {

    List<Destination> findByDestId(String id);

    List<Strategy> findByCatalogId(String id);

    List<Strategy> findByDestIdOrderByViewnum(String destId);
}
